package com.xuhao.didi.socket.common.interfaces.common_interfacies.server;

import com.xuhao.didi.core.iocore.interfaces.ISendable;
import com.xuhao.didi.core.pojo.OriginalData;

public interface IClientIOCallback {
    /**
     * 读取动作
     *
     * @param originalData 数据
     * @param client 接口
     * @param clientPool 集合
     */
    void onClientRead(OriginalData originalData, IClient client, IClientPool<IClient, String> clientPool);

    /**
     * 写入
     *
     * @param sendable 发送
     * @param client 动作
     * @param clientPool 集合
     */
    void onClientWrite(ISendable sendable, IClient client, IClientPool<IClient, String> clientPool);
}
